package com.qubuyer.business.mine.fragment

import android.os.Bundle
import androidx.fragment.app.Fragment
import com.qubuyer.business.mine.activity.TabHostFragment

class MessageTabFragment : TabHostFragment() {

    override fun getTitle(): String {
        return "消息"
    }

    override val tabs: Array<String>
        get() = arrayOf("活动通知", "系统消息")

    override fun createFragment(position: Int): Fragment {
        return when (position) {
            0 -> MessageListFragment().apply { arguments = Bundle().apply { putInt("type", 1) } }
            else -> MessageListFragment().apply { arguments = Bundle().apply { putInt("type", 2) } }
        }
    }
}